package br.com.rafaelSys.list;

import javax.persistence.EntityManager;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.framework.EntityQuery;

import br.com.rafaelSys.entidades.AtivoSerie;

@Name("ativoSerieList")
@Scope(ScopeType.EVENT)
public class AtivoSerieList extends EntityQuery<AtivoSerie> {
	
	@In
	private EntityManager entityManager;
			
	private static final long serialVersionUID = -8317902333292458406L;

	private static final String EJBQL = "select s from AtivoSerie s";

//	private static final String[] RESTRICTIONS = {};

	private AtivoSerie serie = new AtivoSerie();

	public AtivoSerieList() {
		setEntityManager(entityManager);
		setEjbql(EJBQL);
//		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
//		setMaxResults(25);
	}

	public AtivoSerie getSerie() {
		return serie;
	}

}
